import request from '@/utils/request'

// 查询限期整改列表
export function listManaged(query) {
  return request({
    url: '/visit/managed/list',
    method: 'get',
    params: query
  })
}

// 查询限期整改详细
export function getManaged(wmId) {
  return request({
    url: '/visit/managed/' + wmId,
    method: 'get'
  })
}

// 新增限期整改
export function addManaged(data) {
  return request({
    url: '/visit/managed',
    method: 'post',
    data: data
  })
}

// 修改限期整改
export function updateManaged(data) {
  return request({
    url: '/visit/managed',
    method: 'put',
    data: data
  })
}

// 删除限期整改
export function delManaged(wmId) {
  return request({
    url: '/visit/managed/' + wmId,
    method: 'delete'
  })
}

// 导出限期整改
export function exportManaged(query) {
  return request({
    url: '/visit/managed/export',
    method: 'get',
    params: query
  })
}